Add Python 3.8+ asyncSetUp to "defining-attr-methods" list#8403
Add Python 3.8+ asyncSetUp to "defining-attr-methods" list#8403Pierre-Sassoulas merged 1 commit into
asyncSetUp to "defining-attr-methods" list#8403Conversation
This comment has been minimized.
This comment has been minimized.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #8403 +/- ##
==========================================
- Coverage 95.73% 95.73% -0.01%
==========================================
Files 174 174
Lines 18395 18392 -3
==========================================
- Hits 17610 17607 -3
Misses 785 785
|
|
(One check is still failing against Python 3.11, I guess this is unrelated to these changes as you've encountered the same error elsewhere lately) |
|
I don't know why the primer repeatedly fail. Could you try rebasing on upstream main so that the base commit is newer ? It could be that the cache from the common commit between your branch and the main branch is not available anymore. |
|
🤖 According to the primer, this change has no effect on the checked open source code. 🤖🎉 This comment was generated for commit 61ef33e |
(cherry picked from commit b312b9a)
Type of Changes
Description
This patch adds
unittest.IsolatedAsyncioTestCaseasynchronous "setUp" coroutine to the list of "defining-attr-methods", in order to silence "attribute-defined-outside-init" (W0201) false positive.Feel free to edit this PR as needed; I'm not sure how we should handle Python 3.8+ constraint here.
Thanks, bye 👋